package com.wyvoid.forum.web.listener;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import javax.servlet.ServletContextListener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContext;
import java.util.Map;
import java.util.HashMap;
import java.util.List;

import com.wyvoid.forum.domain.Settings;
import com.wyvoid.forum.service.ISettingsService;
import com.wyvoid.forum.util.ForumUtil;

/**
 * <p>51void.com</p>
 * User:cjp
 * Date: 2007-5-13
 * Time: 20:09:44
 */
public class ForumLoaderListener implements ServletContextListener {
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        try {
            ServletContext application = servletContextEvent.getServletContext();
            ForumUtil.init(application);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
